package com.bah.tract.client;

import javax.swing.JOptionPane;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public final class ErrorHandler {

	private static final Logger LOG = LoggerFactory
			.getLogger(ErrorHandler.class);

	private ErrorHandler() {
	}

	public static void handleError(final Exception ex) {
		JOptionPane.showMessageDialog(null, ex.getMessage(), "TRACT Error",
				JOptionPane.ERROR_MESSAGE);
		LOG.error("Client Error", ex);
	}
}
